<template>
  <n-space>
    <n-button type="info" @click="handleEdit">编辑</n-button>
    <n-button type="error" @click="handleDelete">删除</n-button>
  </n-space>
</template>

<script lang="ts">
export default {
  name: "MenuListOperate"
}
</script>

<script setup lang="ts">
import {onMounted} from "vue"
const emit = defineEmits<{
  (e: "edit"): void
  (e: "delete"): void
}>()

const handleEdit = () => {
  emit('edit')
}

const handleDelete = () => {
  emit('delete')
}


onMounted( () => {
} )
</script>

<style scoped lang="scss">

</style>
